bugfix when using several keywords

using the same prevents from using several keywords. An additional array is used when there is more than one keyword.