fix $PAGE scope issue
fixed scope again