Fix some warnings

Ref #127