fix two small bugs

@lennartcl