oops crash fix

should clean this up sometime anyway