Fix error resize