Fixed look-cistern-f function.