fix width/height not checking length