Fixed crash on pre-5.0