Fix support for itemDetail in app context.