Fix occurlflags bug