Fixed a bug in settings that didnt return the correct values