Fixed error issues in Route class