fix type thanks to Marco Peruzzi