Fixes crash with the erebus

This is a big compat issue as we have gotten this report multiple times.