Fix wrong OptIn check