fixes issue #3284

In issue
https://prototype.lighthouseapp.com/projects/8886/tickets/3284

It was pointed out that the variables `valueL` and `valueT` were flipped by mistake.