fixes lua script loads