Fixing a weird bug with InitializationException when enhancing classes with clint static initialization block