Core: Small fix for Application Window handling