Fixed receive script.