bug with null values