corrected some error in xbrick