Fix major bug with sucess being marked as failure
fix success bug