hotfix for #6, pretty inefficient and gets rid of jitter