bug fixed with overlay