Fixed up some double synronization issues

Made sure an attribute couldn't be flagged as dirty twice