fixes problem with link in post preview