Removing multiple allocation of grid