Fix application loading