Fixed undefined function
Removed obsolete function
Secured collections and optimized publish methods
Fixes cryptic error message on refresh in-game