fix popups not working with java 8