bug fix thanks to Dale Watkins' sharp eyes!