Corrected frequency in sine function