minor fix at coordinate transform