fix for picking when null material encountered