Texture expression fix

Fixed a few of the issues mentioned by Esteban.

Signed-off-by: Marius Avram <marius.avram1309@gmail.com>