bugfix some problems when I wanted to create new contact and used ajax