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