fixes bug with multiple detail windows