fix error with default_scope order("CASE ..."), fixes #319