fix param access when there are no params in uri