Various bug fixes 

Hello,
Please find in this PR various bug fixes I found.

Regards
Philippe M.
Ubik Load Pack Team
http://ubikloadpack.com