fix max docs issues