ACCESS: Fix an issue in checkCode