Fix bug with "add new frame" action