Removing console logs and fixing one bug.