fixes errors in plotTranscripts