Fix bug in app gallery example