fixed a runtime bug and kill