Fixed visual bug that only showed when run outside of ide