fix method call order