Fixing error case where pad doesnt exist