fix to profile likelihood, ref #30