Fixed a bug with shortcodes not ending up on the right place in a post.