Fixed a bug with the CLA code, made app single instance