Fixed allocade bug