Fix carry code