Fix allocation fail