#39 Fixed a bug of the texture setting.