fixing side effect from bug fix