Error fixing

Little steps to fix my own stupidity.