Small maximised fix for undefined window sizes