fix method termination