Fixed the implementation of ruins mod