Fixed error with properties on when called from a class