necessary bugfix: cloudapps were saved with an integer id which caused `indexOf` to fail when searching for the string version of the id