fixed problem with securerandom