fixed a few issues with the jdk 1.8 update