Fixed bug with swapped bounds.