Fixed creating overlay before open event