Fixed incorrect code in rmg_position_auto.

This should have thrown an AttributeError, but the log doesn't
show this.