Fixed reference counting with the "exec" target