Fixed the problem with division