Fix bugs in current_user assignments