bugfix in attaching cityid