fix quality check issues