fixed error in recent posts plugin