missing null check for bucket