fix to allocation bug