Fixed type issues in the flow build_display_list

  still need to go throught and do it for box