fixed validation; fixes #10