Fix system suspend segfault