Race condition problem fixed when parsing