Directly overwriting the item flags seems bad.  What's going on here?