fixed the -sin bug