Fix read of endpoint in update command, closes #282.