Fixed an attribute error when not using scoop