fixes submerge logic problems