Fixed error when a NULL value is provided