fix a bug in codearea