FIX: Using free memory error