UnboundLocalError in proc_second

There was a UnboundLocalError in proc_second. The variable 'dst' was being used where 'd' should have been (following the pattern of the other proc methods). It failed the test I wrote. It should be fixed in the changes attached.