fix brick context