hair problems

Okay so I bleached my hair over the summer and dyed it all kinds of colors but now I want to go back to brown I removed the colors and everything butttt everytime I dye it brown it just turns this nasty green color , anyone know a solution ?