Fix application environment