Rtl and sdf both working properly, but gate isn't?