Fixed Router class_exists issue