Fix overflow visibility logic

Change-Id: Id9235c6946a402841cbd8512b118daf8b1be3c49