Fix #546

basetrans was not updated before computing the real coordinates, thus
leading to invalid rectangles