fix append / condition