Fixed bugs with filtering algorithm and src tags