fixed bugs.
fix bug in fire function.