Fixed some issues with the springmass example