resolve a bug in hostname expression parser