More resource mess - found a bug!