fix issue 1603 - NullPointerException on setTitle call