fix flat assigning to expenses