Solve ugly errors