fix wrong jr-calculation (thx pancake)