bug in case of Null value