fixed issue where exception was thrown when bcprov on classpath