fix problem of root coordinates
fix debug message