fixed context menu generation in sdk 0.6.4