fixed a bug with rot