fixed problem with errors