Fixed issue where 'id_was' would be an array with an array, not an array of single key values