Fixed some erros

Fixed Global for Config
Removed Libs functions unused.