FIXED BUG SCRIPTS