Fix animation displacement issue