fix #15 remove doubled local transformation code