type fix, thanx to @maxlapshin