fix some errors in FAST kernel