Fix to resize errors