TO FIX: resizing does not seems to work