Fix initialization crash

Bug in 14.04

Fixes #471 && #543 from @fsnow-ru