animate transition fix