Fix annoying undefined item error. Sort of hacky. Might try to fix it some other way.