fix method wait