fixed scatter/gather error