CLOUDSTACK-6791 Fixed the issue

(cherry picked from commit 62cc238e1276bad1af7934fe5c150fe801b89140)