Fixed the problem with 9 or more dimensions (need to test with more than 9 in the server)