Fixed bug in getting success url