Encoding fixes and minmax fixes