Grid resize fix