fix initialization when run as standalone war