Fix parent-child relationship in GridWindow