Fixed bug in roles saving