task #13 fix bug with url rewriting