fix to extract warning as error