fix case when current_user is nil