correction de bug resize