fix for alloc failed?