Fix for #333

fixes #333 -- the same issue existed for HTTP handlers as well. Since they both use the same blockmanager call this fixes it for both of those api calls.