fixed for latest Paint.JAVA