Bad variables, chmod 644 the tmp files