fixed a bug in current_user