fixing a bug in oracle