fix divide primitive bug