Fixed a tablet < bugg for padding
Added guard