FIX: memory mode segv