Fixed bug with processing hidden links, small code fixes