Working mesh bugfixes