Fixes annoying bug.