Convert PORT to int on config