fixed auto-loading bug for app pages