bug fix when changing brick category