Removing unwanted overlay template