Division fixes, RSA patch