fixed repeating bug