Fix error method name