fixed city attribute to save in database