Fixed the bug where it would error