fixed two minor bugs that slipped through in the haste