fix initialization order