fix for php not being set correctly