Fix bug on PH5.3 "Cannot access self:: when no class scope is active"