Fixed seg fault from incomplete initialization of grid pointers in metadynamics