fixed undefined issue on general settings