fixed remote pub key being set to null in constructor