Fix a bug - if the bump map is not open, the program seg fault.