fixed some errors that shows up on my laptop