Fixed memory leak
Update project to java 1.8