Fix bug re titlepos in panel funcs