fix bug with overlay

reverted back to previous state