Use setters instead of useless assignments