add an error message when no public states are available