Fixing decode_ambe so it works again.