Fix a two samml bugs (there was a "=" in a if statement where a "==" should have been)