Fixed major RMG bug.