fix bug in remove obs