Testing and a bugfix

Fixed 'closeOnMax'