Fixes the bug in KeyframeController