Fix compile-time nil error