remove illegal option