Fixed a bug which caused the need of qlmanage to be force quit.