fix gate animation (hopefully)