Fixed small bug

Fixed a small bug with redos