fix divide bug