resolves #128: Fix extract bug