correct bug, refreshing canvas