Fixed bug with boolean check in JavaChangeListener.