Added Brian's fix for the mesh rendering

Another push to Master after this commit.