Fix compatibility errors with document create with version 0.7 and below