fix optional param at route beginning