fixed a bug, shifts class is not immutable for some reason