ajax  type bug fixed