Clean up of error box
bugfix