fixing warning log