renamed a function to setAllowDefault().