Fixed the Sin Function generator.