Fixed the divide bug