Correcte bug with framgent when switching