fix compiler is null on watch