Bugfix for defined cases, they shouldn't reach the invalidBlockCode label.