[bugfix] nil guard