Fixed tranglation bugs.