fix exception by reading overlay