intermittant bug fix