fixed endpoint callback
Merge pull request #327 from LorenzoBoccaccia/smartcloud-fixes

fixed endpoint callback