fix issues on AccountServerFactory.java 

Closes #16