Fixed a bug
Fixed some bugs in seneca lib.