divide by zero bug in zoom level