[Core] Bug on legacy device::setup(string, int, int)