fixed two silly bugs