Fixed a bug created when a post is not found