Resolves #4814 by removing duplicate line of code.

Need to be merge up the versions.