Fixed bug in which newloc in get.gene.locations() was turned into a factor.