Reorder calls to shadow box