Map: Fixed a few simple logic errors in moveBucket.