fix diagnostic