Fixed bug with returning wrong err var Changed the field name to be more clear fix: Mark applied/unapplied before up/down when marking applied on success and failure fix: bug with inverted condition