Fix bug in spot flags.