mutex lock issue resolved