Resolved bug when trying to extract file