You're right. I had a bad time fighting with Kotlin and just left there the first thing that worked.
I'll correct this too.
By the way, would you accept it if I recode these classes in Java and get rid of Kotlin? I think that would make the project easier for others to contribute.