fix linking issue when restarting wordpress