Fix gate errors relating to the sign being null. NULLLL