Update Core.java

Fixed #2