fix empty, add switchstate