fix occurs check bug