Ouch! Software glitch grounds flights