drawing curves fixed