fixing errors in parsing code items