Fix regexp problem when "q" is first GET param