Problem solved. I exported everything, opened a new project and imported again, then I made the hair again with current curves. Now the hair is attached to mesh.