fix crt (thanks erik)