Some generic error correction for user template