Fixed bug in $BR/D and %BR/D commands