Fix trigger to autoset complete date