Fix alias frame number range check