Fixed hard and soft clipping issues