fix compiler bug