Correct a bug on resizable items.