Fixed bugs.
Fixed bug of not testing every single combination.