cucumber NPE fix