Fix in doc funciton