compilation bug fix