Fixed home directory bug