Fixing model state edition using text editor