fixing hover overlay bug