Fix parsing bug in API engine.
Fix category editing endpoint.
Ref.: #33.