Fix stock keeper crash