Changed ->app to  within closure