selenium tests turned up 2 logic bugs.