diff --git a/seqloc.cabal b/seqloc.cabal
--- a/seqloc.cabal
+++ b/seqloc.cabal
@@ -1,17 +1,20 @@
 Name:                seqloc
-Version:             0.5
-Cabal-Version:       >= 1.2
+Version:             0.5.0.2
+Cabal-Version:       >= 1.6
 Synopsis:            Handle sequence locations for bioinformatics
 Description:         Handle sequence locations for bioinformatics
-Homepage:            http://www.ingolia-lab.org/software/seqloc/
+Homepage:            http://www.ingolia-lab.org/seqloc-tutorial.html
 License:             MIT
 License-file:        LICENSE
 Author:              Nick Ingolia
 Maintainer:          nick@ingolia.org
 Build-Type:          Simple
-Cabal-Version:       >= 1.4
-
 Category:            Bioinformatics
+
+Source-Repository head
+  type: git
+  location: http://github.com/ingolia/seqloc
+  subdir: seqloc
 
 Flag Tests
   Description: Build test program
diff --git a/src/Bio/SeqLoc/Transcript.hs b/src/Bio/SeqLoc/Transcript.hs
--- a/src/Bio/SeqLoc/Transcript.hs
+++ b/src/Bio/SeqLoc/Transcript.hs
@@ -97,7 +97,7 @@
   where utr3loc cdsloc = case Loc.endPos cdsloc of
           (Pos.Pos endoff Plus) | endoff < trxlast -> Just $! Loc.fromBoundsStrand (endoff + 1) trxlast Plus
           _ -> Nothing
-        trxlast = snd . Loc.bounds . unOnSeq . location $ trx
+        trxlast = (Loc.length . unOnSeq . location $ trx) - 1
 
 -- | Genomic location of CDS within the transcript
 cdsLocation :: Transcript -> Maybe SpliceSeqLoc
