fix controller bug on empty string