fix minor bug (comparison instead of assignment)