State tax filing

I have been trying to file my California taxes and it keeps getting rejected because of a negative value on the 540 schedule D. What do I have to do to fix this?