Move constructor call to end of function

Fixes #705

Signed-off-by: Ryan O'Hara <oharar@email.chop.edu>