bugfix in building types filter