api: fix bug in sequence lookup
m5nr: fix error in schema