Fix for port cross site scripting error