Made a bug fix to spring creation.