null division fix