Fix edit resident