fixing bugs on friendly-URLs update