fixed: when filtering market in dialog window, buildings was also deleted