fix app window delegatr