Fixed next url bug