Fixed static function bug in PHP 5 strict
Fixed optional entities bug