Fixed missing 'throw' keyword