fixed some permission issue