Fix case problem with readonly flag.