fixed inMethod return error result