Need help with debugging "Impossible case alternative"