fixed bug with division