fixed #43 required rule bug