fixed bugs for relese