Fixed error in divide