bugfix: Limit preferences input for port