fixes logic for changing price after quantity changes