fix a bug

include commonly used functions before auto class include function.