Mail 7 message move mail error

I had a script which went through all my email addresses and moved them to the correct sub folder. However since 10.9 the script no longer works.


tell application "Mail"
	tell inbox
		set mess to messages whose sender contains "roel"
		
	end tell
	
	tell account " ACCOUNT NAME "
		move mess to mailbox "Friends_family"
	end tell
end tell

It gets all the messages, however it gives a error when i try to move it. Has anybody got any ideas?

Thanks