Fixed bug in sequence normalization