fix route method bug