fixed exception problem with loading routes