fixed compile errors
with frame allocator, everything fails