Fix user received_messages error.

This fixes #72 on rails4 branch.