fix broken building matrix