bug fix for saving empty strings