Fixing create_meshes bug