bug fix about RHS