Fix compiler error and init bug (wasn't setting modified flag).