fix to remove notices for undefined values