Fixed a minor bug in the java model modified handler.