env was not correctly set