Fix some warning
Merge pull request #189 from Xefir/fix-errorlog-spam

Fix some warnings