[REST] fixes #1329