fix error reporting due to E_STRICT