Fixed being unable to log into singularity after logging into Tranquility
Fixed some issues with auto-patching code