fix error function in lua
add fastcommit mode