fix #28 config.keys undefined