Fixed some stuff in the configuration handler

Still not working properly