fixed theta parsing error