fixed flatmap reference in api documentation