fixes bug with router#render