fix NPE issue with bounds and flags when passed null options