Please close this ticket.

The problem was that I had to (require 'rec-mode) explicitly before using the mode.

After doing that, all is working fine.

Thank you!