- fixed some warnings
- fixed a compilation error