stupid bug fixed on parsing state