FIX bugs: deleting of synced tasks; if conditions involving null, problem caused by != null statement.