correction of focus of code field