Fixed some bugs in neutron API