fixed a bug in scenerule