Fixed library crashing when target can not be received