Fixed the required bug