Bug with multiple errors fixed