Fixed #12. Autoclose is added to polygon representation