fixed bug of overlay