Fix end key

Only the first part of the end key must be given.