add  width and height  + fix bug update