Fixed bug of reading state features