Pending kill error I can't really seem to find why !

valid check it is enough right?