Odd progress bar window behaviour