fix a bug about upstart