repaired bug with incorectly fast frame changing