Replaced hardcoded boolean value with correct parameter

Implemented changes suggested by review.

Closes #3898