Fix bug related to no-entry on receiveCode