fixed #7, show error while bad parameters found.