[master flag bag] almost fixed. not works on capturing phase