fix current user middleware