Display error message and fix extract failure bug