fixing bug with stop loading issue.