fix bug with cheking