Fixed issue in keywords loop