Things seem to be working, but I can't figure out why the visibility flag isn't