Changed ref since it wont work on inhreited sprites