FIxed the isPad

Signed-off-by: svenake <svenake@gmail.com>