Adding modification from http://ionizecms.com/forum/viewtopic.php?id=474&p=2
Merge pull request #1 from leonaze/master

Adding modification from forum