Fixing minor issue with promptFlag.