fixes #2546 - audit details error - undefined method 'map' for string