fixed division bug