fix invald width and height input on platform settings