Fix sawtooths during animations