fixes 0 attemts bug