Fix types so that it works outside of dev environments