Fixed overlay bug