Fixed extraction error

Fixed error where extracted files were empty (if extension was different
from "out").