Fix compilation errors

This fixes compilation errors about adapted argument lists and
a type error between CharSequence and String
---
I have no idea how the type error between CharSequence and String happened. Compiling it in the IDE doesn't work whereas on the command line everything is ok.