Fixing "Access to undeclared static property: titania::$this" error