Fixes issue with keyframes being pasted outside of timeline