regression fix: invalid ptr was passed

happend by merging patches this morning, never released