fix bug in importGridstat