add fixes from free cable thread.
http://forum.xbmc.org/showthread.php?tid=101938&pid=1431465#pid1431465