Better handling of undefined window parameters