Valid target check(btw i did fix it)