Fix possible Nullpointer in setup