Fix error when create analysis