[*] Fix some bugs (X-Cart 5.0 compatibiity)