fix method not allowed