bugfix for null !== undefined