Fix for undefined method 'user'