fixed an error that would cause E_NOTICE