fix cleaning of readers when changing from private to public