fix #74 integer division in bound