Problems creating a custom curve