Bugs in coordinate transformation.