fix tilelayer anim glitch, close #1548