fixed bugs with fire tasks