Fixing divide operation