fix source preview script for undefined tag and claim box