fixes #2: newFrame() if deleting only frame