fixed bugs in ninject