Fix issue described at http://www.weberp.org/forum/showthread.php?tid=463