fixes bug that prevents setting enums from java procedures