fix #4 incorrect parameter order for grid generator