Fixed an occasional crash on OSX introduced by a duplicate line fix.