Fixed frames bug