by SJ K.
Thanks Rob. Your post has helped me understand the problem and also on how to resolve it.
Our company is using Moodle 2.3.2 and I dont see when they will upgrade to higher versions, but your simple fix will definitely help us.