Fixing reference count for j.map