small fixes E_NOTICE