Fixed bug with undefined `filename` on keyframes. Closes #1482