[PATCH 0/3] add checks against divide error