fixing options null problem.