Fixed bug in Grid arrange.