Fixed a typo that was causing the corner file to not get closed