Fix division bug