still don't know why this random thing occurs...
removed debug code