Fixed bug doing action on error rather than on no error
ignoring binary