overlay bug fix