fixed bug reported by randy.

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>