fixing warning block