fixes failure bug