Fixed reset loop bug on building grid