fixed bug when adding transition label if transition is curved