fixing a generated observable bug