fix update of instances if grid is not yet initialized
fix update of instances if grid is not yet initialized