I accepted his answer, because it was the source of the code snippet that did the work, however, for any future reader of this question it is beneficial just getting the quick fix, because not everyone has the time/interest to really understand why and how something is a solution.