Ajax put and delete call bug fixed