Bugs correction in Java Project