Fixed shifty rules bug introduced with dia