Fix url bug when changin object from index