fixed a bug in addLikedPosts