Fixed infinite loop for restClient property (fixes #15)