Reversed 684ac3

From ages back when I was trying to fix #543 this function was reversed.