[fix] open/close tag setting is not working

fix code and test code