Fix for edit instrument -window as suggested by Tres