Fix for issue where mongo 2.6 thinks removable variable is object