fix for spec tests