fixed logical bug in processing of route parameters