fix so that nil versions still work