pretty sure this fixes the bug.