re bug fix