resize fix problem