(Temporarily) removed the shearing functionalities and it seems like the projects works just fine without them. It must be the shearing causing problems.