fixed the broken gate