Overlay Issue which won't dissappear

Have you made sure that you’ve got the word overlay before the actual name of your overlay?
E.g:
@overlay OVERLAYNAME opacity 1 in 0.3

Also, sometimes the x to indicate a specific line is wrong is actually wrong itself. Errors can sometimes be on a totally different line.