last occurrence on environment listing now refers to the given environment, fixes #27