Fix an issue with maybeOnce