Shouldn't you use the 'name' variable instead of title?