Fixed lost position on dialog close