fix type, thanks to Yakov Reztsov