bugfix for last commit (nil in array)