fix wierd cookie path error during build