bug fix with DBNull