Bug fix to ensight writer