fix #203 : NPE after validation error