[FIX] removed copy’n’paste code
[FIX] removed gcc compilation errors