fix a bug on brick