small fix for coordinate transform