fix issue with undefined marks