fixed routes errors