Finally fixed texture bug.