Fix for #23

Maximize button now works fine.