remove unnecessary code
improve code style
Fixed a bug that never have callback if no engine path