fixes some errors
?