Resolves #4814 by removing duplicate line of code.