fixed a required bug