Fixing bug -refs #6623