fix errors in case template