Try to fix gates with serverstep code.