Fixed user not found bug with documents