Prevent the "join is not defined" exception on first run