fixes #874  ajax update slug issue