max failed records fix