Fixed bug - ReferenceError when updating app

Issue: #5