fixed bug for shep