Fix user dir problem