Fix keyframes not being added.