fix wrong type causing build error