bug fix to r4d update