Fixed linux crash