Fixed recordsManager obtaining.

Fixed recordsManager obtaining.