Fixed bug preventing grid compilation