An Improvement to Generalized-Minimum-Distance Decoding