Fixed problem with droping query string.