The issue seemed to be an environmental issue that was bugged. It resolved itself after doing some tests.