formatting, fix dereferencing null err