Bug fix

Added var app for unitialized variable