.each for nilclass Fix