fixed adding frames to current state