Correcting errors with base template