Fix potential errors in certain environments