Please rectify the grammar problems in the following sentence
In such conditions, scientists will be discouraged from inventing to some extend.
In such conditions, scientists will be discouraged from inventing to some extent