fix issue #64
fix warnings