fix error: Using  when not in object context in source/class.php on line 498