add res and src of fixing the bug of set alpha for a bm