Fix deploy example

Fix for issue: #959