fixes gulp errors and errors in the console