Fix small issues with errors