Fix zero-sized Map instantiation on device