Implemented corner case rotation [skip ci]