Fix ajax edit