Update src/*.erl for fix compile time errors