Wrong variable used to determine startOpen option