fix notice: undefined index text