Properly catch division by 0