Fixed an issue with texture binding