minor nil fix