Fix method name in throw statement