Corner case bug (undefined !== 0)