fixed rule bug