fix the error allocated error