[WO-418] fix flags handling as atom