bugs in comparing to null