finally solved this bug!!!