fixed bug in flagging propagation