Fixed variable so nil error would stop (by including the thingy that actually makes the stuff work). resolves #52