fix bug with parse chain