Fixed linux crash by reverting the assertion fix. Thanks ZexorZ