Fix a bug to replace permalink correctly
Bump the version to 1.7.0