fixed bug with iterator position in httploc