resolve compile bugs