Fixed a type problem in mesgrid export