Fixed missing this references in gen-class methods