Fixed bug in maximize().