Fixed an issue in RequestSpotInstances

Fixes #248
Merge pull request #249 from rnathuji/bug-248

Fixed an issue in RequestSpotInstances