Fixing issue with summary/detail order