Solves some errors