Fix bad coding practice.