fix encoding of last_significant_position