Change lastUrl and cancelled to ivars. Fixes #896.