Fixed bug in mesh sequence