Fixed a bug with java and some plug ins