Fixed some dumb API bugs.