try to fix some memory access faults