SHADOW MAIN FIX