Fixes bug that showed up in the console