fixes binding issue where null values threw error