avoid NullPointerException (hint from ANR)