fixed rare bug with attach image menu